﻿using Avalon.Core.MVC.Attributes;
using System.ComponentModel.DataAnnotations;

namespace Avalon.Core.Data
{
    [IgnoreEntity]
    public class ContentItem : BaseAuditableEntity
    {
        [Ignore]
        public byte[] Image { get; set; }

        [Required]
        [StringLength(50, MinimumLength=1)]
        [DetailNavigationAttribute("Id")]
        public string Name { get; set; }
        
        [DataType(DataType.MultilineText)]
        public string Description { get; set; }
        
        public string Owner { get; set; }
    }
}
